package com.general.framework.example.containsLong;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Main {
    public static void main(String[] args) {

        List<Long> numbers = new ArrayList<>(Arrays.asList(123L, 127L, 100L, 141L));
        Long userId = 123L;
        boolean contains = numbers.contains(userId);
        if(contains){
            System.out.println("List contains " + userId);
        } else {
            System.out.println("List does not contain " + userId);
        }
    }
}
